<!DOCTYPE HTML>
<html>
  <head>
    <title>debug</title>
    <link rel="stylesheet" href="/static/style.css" type="text/css">
    <script>
    function favorite() {
      alert("favorite!");
    }
    </script>
  </head>
  <body>
    <div id="container">
      <h1>{{ title }}</h1>
      <form action="/debug" method="POST">
        <input type="text" name="gameName" />
        <input type="text" name="describe" />
        <input type="submit" value="增加新游戏" />
      </form>
       <table>
        {% for game in games %}
        <tr>
          <th>{{ game.get('gameName') }}</th>
          <th><button onclick='favorite()'>收藏</button></th>
        </tr>
        {% endfor %}
       </table>
    </div>
  </body>
</html>
